################################################################################
#
# getevent
#
################################################################################

# source included in buildroot, taken from
GETEVENT_LICENSE = GPL-2.0+
GETEVENT_VERSION = 1.0

GETEVENT_SITE = git@gitee.com:fxyy/getevent.git
GETEVENT_VERSION = v1.0
GETEVENT_SITE_METHOD = git
# CUSTOMAPP_SITE = customapp
# CUSTOMAPP_SITE_METHOD = local

#GETEVENT_SOURCE = $(GETEVENT_PKGDIR)/getevent.c

# define GETEVENT_EXTRACT_CMDS
# 	cp $(GETEVENT_DL_DIR)/*.c $(GETEVENT_DL_DIR)/*.h $(@D)
# endef

define GETEVENT_BUILD_CMDS
	$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
		$(@D)/getevent.c -o $(@D)/getevent
endef

define GETEVENT_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 755 $(@D)/getevent $(TARGET_DIR)/usr/bin/getevent
endef

$(eval $(generic-package))

#MKPASSWD = $(HOST_DIR)/bin/getevent
